package model.components;

import model.Request;

/**
 * NodeMapping class. It is a pair composed of:
 * Request request
 * Request Node requestNode
 */
public class NodeMapping {
	
	private Request request;
	private Node requestNode;
	
	public NodeMapping(Request r, Node rn) {
		this.request = r;
		this.requestNode = rn;
	}

	public Request getRequest() {
		return request;
	}

	public void setRequest(Request request) {
		this.request = request;
	}

	public Node getRequestNode() {
		return requestNode;
	}

	public void setRequestNode(Node requestNode) {
		this.requestNode = requestNode;
	}

	public NodeMapping getCopy() {
		NodeMapping nm = new NodeMapping((Request)this.getRequest().getCopy(),
				(Node)this.getRequestNode().getCopy());
		return nm;
	}

	
}
